Nested Classes, Event Listeners |
Advantages | |
![]() |
No need to copy references to variables in scope: straightforward listener/handler linkage |
![]() |
Nested listeners can be private or protected; no need to clog the
namespace with system glue |
![]() |
Brevity: eliminates nearly all of the scaffolding a top level class requires |